package com.lnw.travels.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lnw.travels.entity.TPlace;
import com.lnw.travels.entity.TProvince;
import com.lnw.travels.mapper.PlaceMapper;
import com.lnw.travels.mapper.ProvinceMapper;
import com.lnw.travels.service.PlaceService;
import com.lnw.travels.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PlaceServiceImpl extends ServiceImpl<PlaceMapper, TPlace> implements PlaceService {
    @Autowired
    private PlaceMapper placeMapper;

    @Override
    public IPage<TPlace> selectPage(long page, long size) {
        IPage<TPlace> iPage = placeMapper.selectPage(new Page<>(page, size), null);
        return iPage;
    }
}
